package com.tg.paw.common.util;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author Rubble
 * @date 2020/6/13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TokenData {



    private String type;

    private String accessToken;

    private String refreshToken;

    /**
     * 过期时间
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private long expiresIn;

    /**
     * 刷新过期时间
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private long refreshExpiresIn;
}
